package com.NetSunWeiQin.chapter06.fileSever;

import java.net.*;

public class FileContentHandlerFactory implements ContentHandlerFactory {
    public ContentHandler createContentHandler(String mimetype) {
        if (mimetype.equals("application/octet-stream")) {
            return new FileContentHandler();
        } else {
            return null;
        }
    }
}

